// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 引用axios，并设置基础URL为后端服务api地址
var axios = require('axios')

//axios.defaults.baseURL = 'http://localhost:8088/api'  //此处是https协议如果不是改成http

axios.defaults.baseURL = 'http://localhost:10001/admin'  //此处是https协议如果不是改成http

// 将API方法绑定到全局
Vue.prototype.$http = axios
Vue.config.productionTip = false

Vue.use(ElementUI);
/* eslint-disable no-new */



new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
